import { request } from '@umijs/max';

export async function getMenuList(merchant_id: any) {
  return request(`http://47.108.248.39:8002/restaurant/menu/${merchant_id}`, {
    method: 'GET',
  });
}

export async function submitTask(params: any) {
  return request(`http://47.108.248.39:8081/submit`, {
    method: 'POST',
    data: params
  });
}
export async function getSubmitTask(task_id: string) {
  return request(`http://47.108.248.39:8081/comment/${task_id}`, {
    method: 'GET',
  });
}
